Repository navigation
Cut the US overnight auction book; weekly review of the sheet book - #45
Merged
Merged
Conversation
- config/sheet_book.json: auction_overnight_weight 0. From Monday the auction sleeve opens no overnight book (Friday's book still settles at Monday's open); the ADR book keeps the sleeve's capital. - qtrade/intraday/weekly_review.py + weekly-review.yml (Saturdays): each sleeve's live Sharpe vs its backtest (config/review.json), z = (S - B) * sqrt(n/252); no verdict before 40 live days, then cut at z <= -2, halve at z <= -1. Results go to a 'Weekly review' tab; changes go in by PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cut the overnight book (at the user's request):
auction_overnight_weight: 0inconfig/sheet_book.json. The US overnight auction book lost $100.03 over 26 days (10 up, live Sharpe about -1.9) and accounted for most of the book's loss. From Monday's run the auction sleeve opens no overnight positions; Friday's book still settles at Monday's open. The ADR book (+$58 since its fix on Nov 19) keeps trading on the sleeve's capital. The weight scales tonight's book, so the review can also halve it.Weekly review (
qtrade/intraday/weekly_review.py,weekly-review.yml, Saturdays 14:17 UTC): reads each sleeve's daily log in the sheet and compares its live annualised Sharpe S over n days with the backtest Sharpe B inconfig/review.json(0 bp, latest test period of each study). z = (S - B)·√(n/252). There's no verdict before 40 live days; after that, cut at z ≤ -2, halve at z ≤ -1, otherwise keep. Results go to a new "Weekly review" tab, with weekly history below. It only proposes; changes to the book go in by PR. The two $0 trackers are listed for information.Tests:
tests/test_weekly_review.py(stats, the verdict rule, reading each tab's log). The full suite passes.Generated by Claude Code